package com.allo2o.common.biz.sequence.longimpl;

import org.apache.log4j.Logger;

import com.allo2o.common.biz.sequence.SequenceRangeGenerator;
import com.allo2o.common.biz.sequence.exception.SequenceException;

public abstract class LongSequenceRangeGenerator implements SequenceRangeGenerator<Long> {

    /**
     * 
     */
    private static final long serialVersionUID = 858883982092635828L;

    protected static final Logger LOGGER              = Logger.getLogger(LongSequenceRangeGenerator.class);

    protected static final int    MIN_STEP            = 1;

    protected static final int    MAX_STEP            = 100000;

    protected static final int    DEFAULT_STEP        = 1000;

    protected static final int    DEFAULT_RETRY_TIMES = 150;

    @Override
    public LongSequenceRange nextRange(String name) throws SequenceException {
        throw new UnsupportedOperationException("occur unsupported operation exception");
    }

}
